﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class fckeditor_editor_Fckdel_file : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            string file = Server.UrlDecode( Request.QueryString["filePath"].Trim());
            string filePath = Server.MapPath(file);
            if (System.IO.File.Exists(filePath))
            {
                System.IO.File.Delete(filePath);
                Response.Write("1");
            }
            else
            {
                Response.Write("0");
            }
        }
        catch
        {
            Response.Write("0");
        }
    }
}